home *** CD-ROM | disk | FTP | other *** search
- /*
- mc68881.h
- Defines MPW C's mc68881 and mc68020 preprocessor symbols for THINK C and
- Metrowerks CodeWarrior C, so that your programs can use them in "if" statements
- without worrying about which compiler you're using. The symbols are 1 (i.e.
- true) if the compiled code requires the chip (or better) and 0 otherwise.
-
- CAUTION: Do not #include this file before FixMath.h
-
- HISTORY:
- 1992 dgp wrote it
- 7/28/94 dgp added support for Metrowerks CodeWarrior C
- */
- #pragma once
-
- #if defined(THINK_C) && THINK_C==1 /* THINK C 4 */
- #define mc68881 _MC68881_
- #define mc68020 _MC68020_
- #endif
- #if (defined(THINK_C) && THINK_C>1) || defined(THINK_CPLUS) /* THINK C 5,6,7, C++ */
- #if __option(mc68881)
- #define mc68881 1
- #else
- #define mc68881 0
- #endif
- #if __option(mc68020)
- #define mc68020 1
- #else
- #define mc68020 0
- #endif
- #endif
- #if defined(__MWERKS__) /* Metrowerks CodeWarrior C */
- #define mc68881 __MC68881__
- #define mc68020 __MC68020__
- #endif
-